/*
package com.rescue.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

*/
/**
 * WebSocket配置类，用于注册WebSocket的Bean
 *//*

@Configuration
public class CorsConfiguration implements WebMvcConfigurer {
    @Override
    public void addCorsMappings(CorsRegistry registry) {
        //添加映射路径
        registry.addMapping("/**")
                //允许的域
                .allowedOrigins("*")
                //允许携带Cookie
                .allowCredentials(true)
                //允许的请求方式
                .allowedMethods("GET","POST","PUT","DELETE")
                //允许的请求头
                .allowedHeaders("*");
    }
}
*/
